package com.lsege.service.backstage;

import com.lsege.entity.backstage.Delivery;
import com.lsege.mapper.backstage.DeliveryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.security.PublicKey;
import java.util.List;

/**
 * Created by Administrator on 2017/7/6.
 */
@Service
public class DeliveryServiceImpl implements DeliveryService {

    @Autowired
    DeliveryMapper deliveryMapper;

    @Override
    public Long queryDeliveryCount() {
        return deliveryMapper.queryDeliveryCount();
    }

    @Override
    public List<Delivery> getDeliveryList(){
        return deliveryMapper.queryDeliveryList();
    }

    @Override
    public void addDelivery(Delivery delivery) {
        deliveryMapper.addDelivery(delivery);
    }

    @Override
    public Long getDeliveryCount(Delivery delivery) {
        return deliveryMapper.getDeliveryCount(delivery);
    }

    @Override
    public void deleteDeliver(Delivery delivery) {
        deliveryMapper.deleteDeliver(delivery);
    }
}
